ShortPixel\Model\Image\ImageModel D

Total Complexity 263
Dependencies 6
Dependents 10
Total lines 1,283
Lines of code 868
Logical lines of code 507
Comment lines 135
Methods 47
Properties 11

Methods 47

Method Rating Maintainability Complexity Lines of code
handleOptimized()
B
31 20 119
createParamList()
B
42 22 47
getProcessableReason()
B
41 17 55
createBackup()
A
41 13 62
isProcessable()
A
54 15 20
handleOptimizedFileType()
A
47 13 35
getImageType()
A
46 12 39
isRestorable()
A
43 11 53
restore()
A
41 7 65
isProcessableSize()
A
54 10 19
isPathExcluded()
A
52 9 23
isProcessableFileType()
A
55 9 18
isImage()
A
50 8 31
isSizeExcluded()
A
53 8 21
handleWebp()
S
49 6 32
setImageSize()
S
58 7 16
isExtensionExcluded()
S
56 6 19
onDelete()
S
60 6 13
handleAvif()
S
53 5 21
getCountOptimizeData()
S
54 5 20
getImprovement()
S
58 5 15
get()
S
63 5 11
matchExludeRegexPattern()
S
63 4 11
setMeta()
S
60 3 15
getMeta()
S
62 3 12
isProcessableAnyFileType()
S
65 3 9
getReason()
S
67 3 8
setWebp()
S
71 3 5
setAvif()
S
71 3 5
matchExcludePattern()
S
66 3 9
exists()
S
67 2 8
isOptimized()
S
68 2 8
getOptimizeUrls()
S
100 1 0
saveMeta()
S
100 1 0
loadMeta()
S
100 1 0
getImprovements()
S
100 1 0
preventNextTry()
S
100 1 0
isOptimizePrevented()
S
100 1 0
resetPrevent()
S
100 1 0
__construct()
S
80 1 3
__get()
S
80 1 3
getWebp()
S
80 1 3
getAvif()
S
80 1 3
recordChanged()
S
81 1 3
hasMeta()
S
79 1 3
toClass()
S
81 1 3
fs()
S
80 1 3